<%@page import="cn.school.entity.Student"%>
<%@page import="cn.school.service.StudentService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>提交成功</title>
</head>
<body>
<%
request.setCharacterEncoding("utf-8");
String name=request.getParameter("name");
String sex=request.getParameter("sex");
String telephone=request.getParameter("telephone");
String qq=request.getParameter("qq");
String gradeid=request.getParameter("gradeid");
String enterdate=request.getParameter("enterdate");
String wechat=request.getParameter("wechat");
String fromcity=request.getParameter("fromcity");
String birthday=request.getParameter("birthday");
String address=request.getParameter("address");
String pass=request.getParameter("pass");
StudentService s=new StudentService();
Student stu=new Student();
stu.setSname(name);
stu.setSex(sex);
stu.setTelephone(telephone);
stu.setQq(qq);
stu.setWechat(wechat);
stu.setGradeid(gradeid);
stu.setEnterdate(enterdate);
stu.setFromcity(fromcity);
stu.setBirthday(birthday);
stu.setAddress(address);
stu.setPass(pass);
s.add(stu);
%>
</body>
</html>